import myRequest from "./request.js"

import {
	staticDomainURL
} from '@/common/comm.js'

// const apiService = {


// }
// export default apiService;
/**
 * 获取文件访问路径
 * @param avatar
 * @param subStr
 * @returns {*}
 */
export function getFileAccessHttpUrl(avatar, subStr) {
	if (!subStr) subStr = 'http'
	if (avatar && avatar.startsWith(subStr)) {
		return avatar;
	} else {
		return staticDomainURL + "/" + avatar;
	}
}
